﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BoolanSlide.UI;
using Windows.UI.Xaml.Controls;

namespace BoolanElement.UI.TextBox
{
    class ShapeStyleSettingHelper
    {
        #region 初始化文本框样式选择按钮
        Windows.UI.Xaml.Media.Imaging.BitmapImage NoBorderNoBKGImageNormal;
        Windows.UI.Xaml.Media.Imaging.BitmapImage NoBorderNoBKGImageDown;
        Windows.UI.Xaml.Media.Imaging.BitmapImage NoBorderNoBKGImageDisable;
        private ImageButton NoBorderNoBKG;
        public void InitNoBorderNoBKG(Windows.UI.Xaml.Controls.Image container, ButtonClickHandler btnClickHandler)
        {
            NoBorderNoBKG = new ImageButton(container, NoBorderNoBKGImageNormal, NoBorderNoBKGImageDown, NoBorderNoBKGImageDisable);
            NoBorderNoBKG.Click += btnClickHandler;
        }

        
        Windows.UI.Xaml.Media.Imaging.BitmapImage BorderNoBKGImageNormal;
        Windows.UI.Xaml.Media.Imaging.BitmapImage BorderNoBKGImageDown;
        Windows.UI.Xaml.Media.Imaging.BitmapImage BorderNoBKGImageDisable;
        private ImageButton BorderNoBKG;
        public void InitBorderNoBKG(Windows.UI.Xaml.Controls.Image container, ButtonClickHandler btnClickHandler)
        {
            BorderNoBKG = new ImageButton(container, BorderNoBKGImageNormal, BorderNoBKGImageDown, BorderNoBKGImageDisable);
            BorderNoBKG.Click += btnClickHandler;
        }

        
        Windows.UI.Xaml.Media.Imaging.BitmapImage NoBorderBKGImageNormal;
        Windows.UI.Xaml.Media.Imaging.BitmapImage NoBorderBKGImageDown;
        Windows.UI.Xaml.Media.Imaging.BitmapImage NoBorderBKGImageDisable;
        private ImageButton NoBorderBKG;
        public void InitNoBorderBKG(Windows.UI.Xaml.Controls.Image container, ButtonClickHandler btnClickHandler)
        {
            NoBorderBKG = new ImageButton(container, NoBorderBKGImageNormal, NoBorderBKGImageDown, NoBorderBKGImageDisable);
            NoBorderBKG.Click += btnClickHandler;
        }
        
        Windows.UI.Xaml.Media.Imaging.BitmapImage BorderBKGImageNormal;
        Windows.UI.Xaml.Media.Imaging.BitmapImage BorderBKGImageDown;
        Windows.UI.Xaml.Media.Imaging.BitmapImage BorderBKGImageDisable;
        private ImageButton BorderBKG;
        public void InitBorderBKG(Windows.UI.Xaml.Controls.Image container, ButtonClickHandler btnClickHandler)
        {
            BorderBKG = new ImageButton(container, BorderBKGImageNormal, BorderBKGImageDown, BorderBKGImageDisable);
            BorderBKG.Click += btnClickHandler;
        }
        #endregion 初始化文本框样式选择按钮


        public ShapeStyleSettingHelper()
        {
            LoadImageSource();
        }

        private void LoadImageSource()
        {
            string prefix = "ms-appx:/";

            NoBorderNoBKGImageNormal = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/NoBorderNoBKG.png"));
            NoBorderNoBKGImageDown = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/NoBorderNoBKG.png"));
            NoBorderNoBKGImageDisable = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/NoBorderNoBKG.png"));

            BorderNoBKGImageNormal = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/BorderNoBKG.png"));
            BorderNoBKGImageDown = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/BorderNoBKG.png"));
            BorderNoBKGImageDisable = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/BorderNoBKG.png"));

            NoBorderBKGImageNormal = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/NoBorderBKG.png"));
            NoBorderBKGImageDown = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/NoBorderBKG.png"));
            NoBorderBKGImageDisable = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/NoBorderBKG.png"));

            BorderBKGImageNormal = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/BorderBKG.png"));
            BorderBKGImageDown = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/BorderBKG.png"));
            BorderBKGImageDisable = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(prefix + "images/BorderBKG.png"));
        }
    }
}
